<?php
/**
 * Created by PhpStorm.
 * User: Dominik
 * Date: 4/7/14
 * Time: 9:56 PM
 * DATABASE SAVING
 */
include("connection.php");
include("sqlManager.php");
$sqlManager = new sqlManager();
session_start();

$height = $_SESSION[height]/100;
$weight = $_SESSION[weight];
$result = $weight / ($height*$height);
$sqlManager->saveToDB($_SESSION[name],$_SESSION[familyname],$_SESSION[weight],$_SESSION[height],$_SESSION[beer],$result)

?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="zajimaveeeeeee" content="PhpStorm 7.0">
    <link rel="stylesheet" type="text/css" href="style.css">
    <title>BITWA - Fiala Dominik</title>

</head>
<body>
<div id="hlavicka">
    <h1 align="center">BITWA</h1><br>
</div>
<div id="menu">
    <? include "menu.php" ?>
</div>
<div id="obsah">
    <p>Ulozeni probehlo uspesne</p>
</div>
<div id="copyright">
    &copy fialadom
</div>
</body>
</html>